package com.gjs.cd.service.Impl;

import com.gjs.cd.mapper.CommonMapper;
import com.gjs.cd.pojo.entity.CdCodeActivationRecord;
import com.gjs.cd.service.ICommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhongwenguang
 * @date 2022-3-22 10:35
 */
@Service
public class CommonServiceImpl implements ICommonService {

    @Autowired
    private CommonMapper commonMapper;

    @Override
    public int isTableExist(String tableName) {
        return commonMapper.isTableExist(tableName);
    }

    @Override
    public int queryCodeTotal(String tableName) {
        return commonMapper.queryCodeTotal(tableName);
    }

    @Override
    public int createCdCode(String tableName, String subjectName) {
        return commonMapper.createCdCode(tableName,subjectName);
    }

    @Override
    public int createCdCodeRecord(String tableName, String subjectName) {
        return commonMapper.createCdCodeRecord(tableName,subjectName);
    }

    @Override
    public List<String> queryRecordTableName() {
        return commonMapper.queryRecordTableName();
    }

}
